<div class="container-fluid">
  <a class='label label-success pull-right' href='/tag/list/' style='margin-right:5px;'>全部</a>
  <?php foreach(Collection::all() as $c):?>
  <a class='label label-success pull-right' href='/tag/list/?collection_id=<?php echo $c->id;?>' style='margin-right:5px;'><?php echo $c->name;?></a>
  <?php endforeach;?>
  <span class='label label-info'>标签列表</span>
  <div style='border-top:1px solid #ddd;'></div>
  <div style='height:10px;clear:both;'></div>
  <table class='table table-bordered'>
    <thead>
      <tr>
        <th style='width:100px;'>#专题</th>
        <th>#标签</th>
        <th style='width:80px;'>#OP</th>
        <th style='width:80px;'>#OP2</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($collections as $c):?>
      <tr>
        <td><?php echo $c->name;?></td>
        <td>
          <ul style='margin:0px;'>
            <?php foreach ($c->tags as $t):?>
            <li style='list-style:none;float:left;margin-left:5px;'><span class='label'><?php echo $t->name;?></span></li>
            <?php endforeach;?>
          </ul>
        </td>
        <td><a class='btn btn-mini btn-primary' href='/tag/group/?collection_id=<?php echo $c->id;?>'>组管理</a></td>
        <td><a class='btn btn-mini btn-primary' href='/tag/manage/?collection_id=<?php echo $c->id;?>'>标签管理</a></td>
      </tr>
      <?php endforeach;?>
    </tbody>
  </table>
</div>



